package com.hanlin.backend.common.service;

import com.hanlin.backend.common.util.SpringContextUtil;

/**
 * service工厂
 *
 * @author:hl.yuan
 * @date:2021-01-25
 */
public class HlServiceFactory {

    /**
     * 获取HlSettingService
     *
     * @return
     */
    public static HlSettingService getSettingService() {
        return SpringContextUtil.getBean(HlSettingService.class);
    }

    /**
     * 获取HlEnumService
     *
     * @return
     */
    public static HlEnumService getEnumService() {
        return SpringContextUtil.getBean(HlEnumService.class);
    }

}
